import React, { Component } from 'react';
import List from "./style"

class Lists extends Component {
    render() {
        console.log(this.props);
        let {name,address,latitude} = this.props
        return (
            <List>
                <div className='left'>
                    <h3>{name}</h3>
                    <p>{address}</p>
                </div>
                <div className='right'>
                    <h3>￥{latitude.toFixed(2)}起</h3>
                    <p>距离未知</p>
                </div>
            </List>
        );
    }
}

export default Lists;
